package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Permission;
import com.itheima.pojo.Role;
import com.itheima.pojo.SysUser;

import java.util.List;

public interface RoleService {
    PageResult findPage(QueryPageBean queryPageBean);

    List<Permission> findPermission();

    List<Menu> findMenu();

    Role findByNameAndKeyword(Role role);

    void add(Role role, Integer[] permissionIds, Integer[] menuIds);


    Role findById(Integer id);

    List<Integer> findPermissionIdsByRoleId(Integer roleId);

    List<Integer> findMenuIdsByRoleId(Integer roleId);


    void edit(Role role, Integer[] permissionIds, Integer[] menuIds);


    void delById(Integer id);
    //查询所有角色信息
    List<Role> findAll();
}
